<include file="./Application/Admin/View/index/nav.html" />
<script type="text/javascript">
	function chk() {
		var bname = document.getElementById('b_name');
		var pname = document.getElementById('pname');
		var day = document.getElementById('day');
		if (bname.value == '') {
			alert('书名不能为空！');
			return false;
		}
		if (pname.value == '') {
			alert('借阅人员不能为空！');
			return false;
		}
		if (day.value == '') {
			alert('天数不能为空！');
			return false;
		}
	}
</script>
        <div id="page-wrapper">
        <div class="graphs">
	     <div class="xs" >
  	       <h3>借书</h3>
  	         <div class="tab-content">
						<div class="tab-pane active" id="horizontal-form">
							<form class="form-horizontal" action="{:U('admin/book/borrowbook')}" method="post" onsubmit="return chk();">
								<div class="form-group">
									<label for="focusedinput" class="col-sm-2 control-label">书名</label>
									<div class="col-sm-8">
										<input type="text" name="b_name" id="b_name" class="form-control1"  placeholder="书名">
									</div>
								</div>
								<div class="form-group">
									<label for="focusedinput" class="col-sm-2 control-label">借阅人员</label>
									<div class="col-sm-8">
										<input type="text" name="pname" id="pname" class="form-control1"  placeholder="借阅人员">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">借阅天数</label>
									<div class="col-sm-8">
										<select multiple="" name="day" id="day" class="form-control1">
											<option value="1">1天</option>
											<option value="2">2天</option>
											<option value="3">3天</option>
											<option value="4">4天</option>
											<option value="5">5天</option>
											<option value="6">6天</option>
											<option value="7">7天</option>
											<option value="8">8天</option>
											<option value="9">9天</option>
											<option value="10">10天</option>
											<option value="11">11天</option>
											<option value="12">12天</option>
											<option value="13">13天</option>
											<option value="14">14天</option>
											<option value="15">15天</option>
											<option value="16">16天</option>
											<option value="17">17天</option>
											<option value="18">18天</option>
											<option value="19">19天</option>
											<option value="20">20天</option>
											<option value="21">21天</option>
											<option value="22">22天</option>
											<option value="23">23天</option>
											<option value="24">24天</option>
											<option value="25">25天</option>
											<option value="26">26天</option>
											<option value="27">27天</option>
											<option value="28">28天</option>
											<option value="29">29天</option>
											<option value="30" selected="selected">30天</option>
										</select>
									</div>
									<div class="col-sm-2">
										<p class="help-block">最多借阅30天<br><br>默认借阅30天</p>
									</div>
								</div>

								<div class="form-group">
									<div class="col-sm-8 col-sm-offset-2">
										<input type="submit" value="借阅" class="btn-success btn">
										<input type="reset" value="重置" class="btn-inverse btn">
									</div>
								</div>
							</form>
						</div>
					</div>
				<br><br><br><br><br><br>
  </div>

<include file="./Application/Admin/View/index/footer.html" />